﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Business.IManager;
using Business.Manager;
using Entity;
using System.Data;

namespace OnlinePayment.Admin
{
    public partial class GuestbookReplyBGView : System.Web.UI.Page
    {
        IGuestbookManager guestbookManager = new GuestbookManager();
        public GuestBook gb;
        public DataTable dt;
        public string entityid;


        protected void Page_Load(object sender, EventArgs e)
        {
            if (object.Equals(Request["EntityId"], null))
            {
                // Response.Write(UtilityClass.MessageBox("错误"));
            }
            else
            {
                entityid = Request["EntityId"].ToString();
                gb = guestbookManager.getDetail(entityid);
                //dataBind();
            }
        }



        protected void btn_reply_Click(object sender, EventArgs e)
        {
            string body = txtrpy.Text.ToString();
            if (guestbookManager.adminReply(entityid, body)){}




        }

        protected void btn_back_Click(object sender, EventArgs e)
        {
            Response.Write("<script>document.getElementById('main').src='GuestbookBGView.aspx';</script>");
            Response.Redirect("GuestbookBGView.aspx");
        }
    }
}